package com.gjzhao.fmmall;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;

@SpringBootApplication
@EnableDiscoveryClient // 作为服务的消费者，需要添加注解 @EnableDiscoveryClient 使其能够从eureka中找到服务
@EnableHystrix // 想要进行服务降级与熔断，需要添加注解 @EnableHystrix (或者 @EnableCircuitBreaker)
public class ApiOrderAddRibbonHystrixApplication {

    public static void main(String[] args) {
        SpringApplication.run(ApiOrderAddRibbonHystrixApplication.class, args);
    }

}
